<?php

class App_Dojo_Form extends Zend_Dojo_Form
{
    /**
     * Set form name
     *
     * @param  string $name
     * @return Zend_Dojo_Form
     */
    public function setName($name, $validate = true)
    {
        parent::setName($name);
        if ($validate){
        	$this->getView()->validateDojoForm($this->getName());
        }
        return $this;
    }

    public function addEvents()
    {
		// add dojo events with capture start
    }
}